package com.deyuanyun.pic.ctrl.controller.vo.exinsp;

import com.deyuanyun.pic.common.util.format.DateFormat;
import com.deyuanyun.pic.ctrl.controller.vo.DefaultCommand;

import java.util.Date;

/**
 * Created by linwei on 9/19/2016.
 */
public class ExinspBaseVO<T> extends DefaultCommand<T> {

    // 主键
    private String id;

    // 记录人（直接存名称）
    private String recorder;
    // 记录时间
    private String recordTime;
    // 备注
    private String remarks;

    public void fromDomain(String id, String recorder, Date recordTime, String remarks) {

        // 主键
        this.id = id;

        // 记录人（直接存名称）
        this.recorder = recorder;
        // 记录时间
        this.recordTime = DateFormat.format(recordTime);
        // 备注
        this.remarks = remarks;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRecorder() {
        return recorder;
    }

    public void setRecorder(String recorder) {
        this.recorder = recorder;
    }

    public String getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(String recordTime) {
        this.recordTime = recordTime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
